<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>用户列表页</title>
</head>
<body>
    <h1>用户列表</h1>
    <form action="${pageContext.request.contextPath}/jsp/user" method="get">
        <input type="hidden" method="query">
        用户名：<input type="text" name="userName">
        用户角色：<select name="roleId">
        <c:if test="${roleList != null}">
            <option value="">--请选择--</option>
            <c:forEach var="role" items="${roleList}">
                <option value="${role.id}">${role.roleName}</option>
            </c:forEach>
        </c:if>
    </select>
        <input type="submit" value="查询">
    </form>
    <a href="">添加用户</a>
    <br>
    <hr />
    <br/>
    <table border="1">
    </table>
    数据总数：${totalCount}
</body>
</html>
